home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1997-03-18 | 2.3 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Mar 17 20:06:44 1997, modified Mon Mar 17 20:06:44 1997, creator 'CWIE', type ASCII, 1467 bytes "ooftst27.cpp" , at 0x63b 520 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 6f 6f 66 74 73 74 | 32 37 2e 63 70 70 00 00 |..ooftst|27.cpp..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 05 bb 00 | 00 02 08 af 53 9b 24 af |........|....S.$.|
|00000060| 53 9b 24 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |S.$.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 69 70 00 00 |........|....ip..|
|00000080| 2f 2f 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 |// Copyr|ight 199|
|00000090| 36 20 41 2e 44 2e 20 53 | 6f 66 74 77 61 72 65 2e |6 A.D. S|oftware.|
|000000a0| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|000000b0| 72 76 65 64 0d 0d 2f 2f | 20 4f 4f 46 54 45 53 54 |rved..//| OOFTEST|
|000000c0| 32 37 0d 0d 2f 2f 20 74 | 68 69 73 20 73 61 6d 70 |27..// t|his samp|
|000000d0| 6c 65 20 74 65 73 74 73 | 20 74 68 65 20 77 6f 72 |le tests| the wor|
|000000e0| 64 20 70 61 72 73 65 72 | 2c 20 61 6e 64 20 63 6f |d parser|, and co|
|000000f0| 75 6c 64 20 62 65 20 75 | 73 65 64 20 74 6f 20 74 |uld be u|sed to t|
|00000100| 65 73 74 20 61 6e 79 20 | 70 61 72 73 65 72 73 0d |est any |parsers.|
|00000110| 2f 2f 20 74 68 61 74 20 | 79 6f 75 20 63 72 65 61 |// that |you crea|
|00000120| 74 65 0d 0d 2f 2f 20 53 | 69 6d 70 6c 65 20 73 74 |te..// S|imple st|
|00000130| 72 65 61 6d 20 49 2f 4f | 20 69 73 20 75 73 65 64 |ream I/O| is used|
|00000140| 20 74 6f 20 69 6e 74 65 | 72 61 63 74 20 77 69 74 | to inte|ract wit|
|00000150| 68 20 74 68 65 20 75 73 | 65 72 2e 0d 23 69 6e 63 |h the us|er..#inc|
|00000160| 6c 75 64 65 20 22 6f 6f | 66 77 6f 72 64 73 2e 68 |lude "oo|fwords.h|
|00000170| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 6f 6f 66 69 |".#inclu|de "oofi|
|00000180| 6c 65 2e 68 22 09 2f 2f | 20 6a 75 73 74 20 74 6f |le.h".//| just to|
|00000190| 20 67 65 74 20 45 58 49 | 54 5f 53 55 43 43 45 53 | get EXI|T_SUCCES|
|000001a0| 53 20 6f 6e 20 61 6c 6c | 20 70 6c 61 74 66 6f 72 |S on all| platfor|
|000001b0| 6d 73 0d 0d 0d 69 6e 74 | 20 6d 61 69 6e 28 29 0d |ms...int| main().|
|000001c0| 7b 0d 09 63 6f 75 74 20 | 3c 3c 20 22 4f 4f 46 49 |{..cout |<< "OOFI|
|000001d0| 4c 45 20 56 61 6c 69 64 | 61 74 69 6f 6e 20 53 75 |LE Valid|ation Su|
|000001e0| 69 74 65 20 2d 20 54 65 | 73 74 20 32 37 5c 6e 22 |ite - Te|st 27\n"|
|000001f0| 0d 09 09 20 3c 3c 20 22 | 54 68 69 73 20 74 65 73 |... << "|This tes|
|00000200| 74 73 20 74 68 65 20 77 | 6f 72 64 20 70 61 72 73 |ts the w|ord pars|
|00000210| 65 72 20 75 73 65 64 20 | 69 6e 20 67 65 6e 65 72 |er used |in gener|
|00000220| 61 74 69 6e 67 20 6b 65 | 79 77 6f 72 64 20 69 6e |ating ke|yword in|
|00000230| 64 69 63 65 73 2e 5c 6e | 5c 6e 22 3b 0d 09 0d 09 |dices.\n|\n";....|
|00000240| 63 6f 6e 73 74 20 63 68 | 61 72 20 74 65 73 74 53 |const ch|ar testS|
|00000250| 74 72 5b 5d 20 3d 20 22 | 54 68 69 73 20 69 73 20 |tr[] = "|This is |
|00000260| 61 20 74 65 73 74 20 43 | 61 62 62 61 67 65 22 3b |a test C|abbage";|
|00000270| 0d 09 63 6f 6e 73 74 20 | 63 68 61 72 20 2a 20 73 |..const |char * s|
|00000280| 74 6f 70 4c 69 73 74 5b | 5d 20 3d 20 7b 22 63 61 |topList[|] = {"ca|
|00000290| 62 62 61 67 65 22 7d 3b | 0d 09 0d 09 6f 6f 66 57 |bbage"};|....oofW|
|000002a0| 6f 72 64 50 61 72 73 65 | 72 20 77 70 28 74 65 73 |ordParse|r wp(tes|
|000002b0| 74 53 74 72 2c 33 2c 73 | 74 6f 70 4c 69 73 74 2c |tStr,3,s|topList,|
|000002c0| 31 29 3b 0d 0d 09 63 6f | 75 74 20 3c 3c 20 22 54 |1);...co|ut << "T|
|000002d0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 70 61 72 |he follo|wing par|
|000002e0| 73 65 73 20 27 22 20 3c | 3c 20 74 65 73 74 53 74 |ses '" <|< testSt|
|000002f0| 72 20 3c 3c 20 22 27 20 | 73 6b 69 70 70 69 6e 67 |r << "' |skipping|
|00000300| 3a 5c 6e 22 0d 09 09 20 | 3c 3c 20 22 20 20 20 27 |:\n"... |<< " '|
|00000310| 69 73 27 20 61 6e 64 20 | 27 61 27 20 62 65 63 61 |is' and |'a' beca|
|00000320| 75 73 65 20 74 68 65 79 | 20 61 72 65 20 6c 65 73 |use they| are les|
|00000330| 73 20 74 68 61 6e 20 74 | 68 65 20 6d 69 6e 69 6d |s than t|he minim|
|00000340| 75 6d 20 77 6f 72 64 20 | 6c 65 6e 67 74 68 20 6f |um word |length o|
|00000350| 66 20 33 5c 6e 22 0d 09 | 09 20 3c 3c 20 22 20 20 |f 3\n"..|. << " |
|00000360| 20 27 63 61 62 62 61 67 | 65 27 20 62 65 63 61 75 | 'cabbag|e' becau|
|00000370| 73 65 20 69 74 20 69 73 | 20 6f 6e 20 74 68 65 20 |se it is| on the |
|00000380| 6c 69 73 74 20 6f 66 20 | 27 73 74 6f 70 20 77 6f |list of |'stop wo|
|00000390| 72 64 73 27 20 77 68 69 | 63 68 20 61 72 65 20 69 |rds' whi|ch are i|
|000003a0| 67 6e 6f 72 65 64 5c 6e | 5c 6e 22 3b 0d 09 66 6f |gnored\n|\n";..fo|
|000003b0| 72 20 28 77 70 2e 73 74 | 61 72 74 28 29 3b 77 70 |r (wp.st|art();wp|
|000003c0| 2e 6d 6f 72 65 28 29 3b | 77 70 2e 6e 65 78 74 28 |.more();|wp.next(|
|000003d0| 29 29 20 7b 0d 09 09 63 | 6f 75 74 20 3c 3c 20 77 |)) {...c|out << w|
|000003e0| 70 2e 77 6f 72 64 28 29 | 20 3c 3c 20 65 6e 64 6c |p.word()| << endl|
|000003f0| 3b 0d 09 7d 0d 09 0d 09 | 63 68 61 72 20 74 65 73 |;..}....|char tes|
|00000400| 74 53 74 72 32 5b 5d 20 | 3d 20 22 45 76 65 6e 20 |tStr2[] |= "Even |
|00000410| 6c 6f 6e 67 65 72 20 61 | 6e 64 20 73 69 6c 6c 69 |longer a|nd silli|
|00000420| 65 72 20 73 74 72 69 6e | 67 20 61 62 6f 75 74 20 |er strin|g about |
|00000430| 63 61 62 62 61 67 65 20 | 61 6e 64 20 63 61 62 62 |cabbage |and cabb|
|00000440| 61 67 65 73 20 61 6e 64 | 20 4b 69 6e 67 73 22 3b |ages and| Kings";|
|00000450| 0d 09 0d 09 63 6f 75 74 | 20 3c 3c 20 22 5c 6e 5c |....cout| << "\n\|
|00000460| 6e 5c 6e 4e 6f 77 20 72 | 65 70 61 72 73 65 20 77 |n\nNow r|eparse w|
|00000470| 69 74 68 20 61 20 64 69 | 66 66 65 72 65 6e 74 20 |ith a di|fferent |
|00000480| 73 74 72 69 6e 67 2c 20 | 72 65 74 61 69 6e 69 6e |string, |retainin|
|00000490| 67 20 74 68 65 20 73 74 | 6f 70 6c 69 73 74 20 26 |g the st|oplist &|
|000004a0| 20 6d 69 6e 20 6c 65 6e | 67 74 68 5c 6e 22 0d 09 | min len|gth\n"..|
|000004b0| 09 20 3c 3c 20 22 27 22 | 20 3c 3c 20 74 65 73 74 |. << "'"| << test|
|000004c0| 53 74 72 32 20 3c 3c 20 | 22 27 5c 6e 22 0d 09 09 |Str2 << |"'\n"...|
|000004d0| 20 3c 3c 20 22 4e 6f 74 | 65 3a 20 61 20 66 61 6e | << "Not|e: a fan|
|000004e0| 63 69 65 72 20 77 6f 72 | 64 20 70 61 72 73 65 72 |cier wor|d parser|
|000004f0| 20 74 68 61 74 20 64 6f | 65 73 20 27 73 74 65 6d | that do|es 'stem|
|00000500| 6d 69 6e 67 27 20 77 6f | 75 6c 64 20 61 6c 73 6f |ming' wo|uld also|
|00000510| 20 72 65 6d 6f 76 65 20 | 27 63 61 62 62 61 67 65 | remove |'cabbage|
|00000520| 73 27 5c 6e 22 0d 09 09 | 20 3c 3c 20 22 62 79 20 |s'\n"...| << "by |
|00000530| 74 72 69 6d 6d 69 6e 67 | 20 69 74 20 64 6f 77 6e |trimming| it down|
|00000540| 20 74 6f 20 27 63 61 62 | 62 61 67 65 27 20 61 6e | to 'cab|bage' an|
|00000550| 64 20 74 68 65 6e 20 64 | 72 6f 70 70 69 6e 67 20 |d then d|ropping |
|00000560| 69 74 20 62 65 63 61 75 | 73 65 20 27 63 61 62 62 |it becau|se 'cabb|
|00000570| 61 67 65 27 20 69 73 20 | 6f 6e 5c 6e 22 0d 09 09 |age' is |on\n"...|
|00000580| 20 3c 3c 20 22 74 68 65 | 20 73 74 6f 70 20 77 6f | << "the| stop wo|
|00000590| 72 64 73 20 6c 69 73 74 | 2e 5c 6e 5c 6e 22 3b 0d |rds list|.\n\n";.|
|000005a0| 09 77 70 2e 73 74 61 72 | 74 28 74 65 73 74 53 74 |.wp.star|t(testSt|
|000005b0| 72 32 29 3b 0d 09 63 6f | 75 74 20 3c 3c 20 77 70 |r2);..co|ut << wp|
|000005c0| 20 3c 3c 20 65 6e 64 6c | 3b 09 09 2f 2f 20 6a 75 | << endl|;..// ju|
|000005d0| 73 74 20 74 6f 20 73 68 | 6f 77 20 74 68 65 20 64 |st to sh|ow the d|
|000005e0| 69 72 65 63 74 20 6f 75 | 74 70 75 74 20 6f 70 65 |irect ou|tput ope|
|000005f0| 72 61 74 6f 72 0d 09 63 | 6f 75 74 20 3c 3c 20 65 |rator..c|out << e|
|00000600| 6e 64 6c 20 3c 3c 22 54 | 65 73 74 20 43 6f 6d 70 |ndl <<"T|est Comp|
|00000610| 6c 65 74 65 64 22 20 3c | 3c 20 65 6e 64 6c 3b 0d |leted" <|< endl;.|
|00000620| 09 0d 09 72 65 74 75 72 | 6e 20 45 58 49 54 5f 53 |...retur|n EXIT_S|
|00000630| 55 43 43 45 53 53 3b 0d | 7d 20 0d 00 00 00 00 00 |UCCESS;.|} ......|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 01 00 00 00 01 8e | 00 00 00 8e 00 00 00 7a |........|.......z|
|00000690| 00 00 00 00 ff fe 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 0c 6f 6f 66 74 73 74 32 | 37 2e 63 70 70 32 02 00 |.ooftst2|7.cpp2..|
|000006c0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000006d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 b0 1b 76 01 00 00 | 00 00 00 00 02 08 00 00 |....v...|........|
|00000700| 00 00 00 00 00 00 00 00 | 00 00 00 31 25 01 41 4c |........|...1%.AL|
|00000710| 54 56 41 4c 54 68 06 00 | 00 00 00 00 00 00 00 00 |TVALTh..|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 30 25 01 | 41 4c 54 56 41 4c 54 76 |.....0%.|ALTVALTv|
|00000740| 04 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 36 |........|.......6|
|00000760| 25 01 41 4d 6b 32 41 4d | 6b 44 01 00 00 00 00 00 |%.AMk2AM|kD......|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 16 01 00 00 00 | 00 00 00 00 01 00 01 00 |........|........|
|00000790| 00 07 07 43 6f 75 72 69 | 65 72 00 00 00 08 00 00 |...Couri|er......|
|000007a0| 00 00 00 00 00 00 00 00 | 00 10 00 01 00 00 01 3d |........|.......=|
|000007b0| 00 00 01 41 05 6d 61 69 | 6e 00 00 00 00 48 00 09 |...A.mai|n....H..|
|000007c0| 4d 6f 6e 61 63 6f 00 00 | 00 00 00 00 00 00 00 00 |Monaco..|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 03 00 04 00 56 00 04 | 01 cd 02 63 00 56 00 04 |.....V..|...c.V..|
|000007f0| 01 cd 02 63 af 68 58 98 | 00 00 00 00 00 00 00 00 |...c.hX.|........|
|00000800| 00 00 00 00 01 00 00 00 | 00 04 00 01 00 01 00 00 |........|........|
|00000810| 01 00 00 00 01 8e 00 00 | 00 8e 00 00 00 7a 01 a3 |........|.....z..|
|00000820| eb 60 2c ce 00 00 00 1c | 00 7a 00 03 4d 50 53 52 |.`,.....|.z..MPSR|
|00000830| 00 01 00 22 46 50 52 46 | 00 00 00 3a 46 50 72 66 |..."FPRF|...:FPrf|
|00000840| 00 00 00 46 4d 57 42 42 | 00 00 00 52 03 ef ff ff |...FMWBB|...R....|
|00000850| 00 00 00 26 00 00 00 00 | 03 ed ff ff 00 00 00 3a |...&....|.......:|
|00000860| 00 00 00 00 05 1a ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 05 1a ff ff 00 00 00 1a | 00 00 00 00 03 f0 ff ff |........|........|
|00000880| 00 00 00 86 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+